/**
 * Huisou.com Inc.
 * Copyright (c) 2011-2012 All Rights Reserved.
 */

package com.lyqg.biz;

import static com.core.Constants.STATUS_NORMAL;

import com.lyqg.dao.AdContentDao;
import com.lyqg.domain.AdContent;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @description
 * 
 * @author chenzehe
 * @email hljuczh@163.com
 * @create 2012-8-3 下午09:11:54
 */
@Service
@Transactional
public class AdContentService extends BaseService implements IAdContentService {
	@Resource
	private AdContentDao	adContentDao;
	
	public List<AdContent> queryByPosition(int position) {
		String hql = "FROM AdContent WHERE position=? AND status=?";
		return adContentDao.find(hql, position, STATUS_NORMAL);
	}
}
